#include <stdio.h>

int AddToTop(int top)
{
    int i = 0;
    int ret = 0;
    for(i = 1;i<=top;i++)
    {
        ret+=i;
    }
    return ret;
}

int main()
{
    int a = 100;
    int ret = 0;
    ret = AddToTop(a);

    printf("结果是:ret = %d\n", ret);
    return 0;
}


